﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
namespace IHISCETeim.Web.MachineSys
{
    public partial class OMeunList : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.修改, Permission.新增, Permission.删除};
            }
        }
        protected override string DWZRef
        {
            get
            {
                return "OMeunList";
            }
        }
        #region 属性 (查询条件)
        

        protected string MenuName
        {
            get
            {
                return GetRequestValue<string>("MenuName");

            }
        }
       
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (GetRequestValue<string>("action") == "clear")
            {
                BaseController.DC.Clear();
                SuccessJson("成功清除缓存");
            }
            DataBind();
        }

        protected void DataBind()
        {
        
          this.rpMenu.DataSource=   OMenuController.GetOMenuPagination(MenuName, pageNum, numPerPage, "MenuId desc",ref TotalCount);
          this.rpMenu.DataBind();
        }
    }
}